﻿using Smark.Core;
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;

internal class Class_j
{
    private const string _field_a = "/qMa0hkFXw6ZSTY6U2MaLRbEFMxqJo/JCEZjZkCXWGR7s+l1yek6gLbx8nGaRl9xULqnOvM1j/zlW/1iy5Uy8IJ1rZJgzpEINOmL1TFnqICCU8/KqyhUhcJYNtc6itm00GmEsEnOuAYUyTE1JoUFh/woSlQnxIl9YVDtmDWvoErCkYOqloIktDr49H3Dmhad2PtjaUyV/UDr1pG7afvcP0hPg9Bfp0LaP5Hl4mdtvNxb2ueDZObTzFkxYqYNCevbhW8ObGC8MBSwnNx5VSclsPgf9IycbD4JfDGox52jt3D0I3pEnQ13Y0JWGCvBpXAWp9NXVFtOcRvSg3GteipY5h8LRVLXbQhhI+JNgDAnjEN4V9knksdQZqCaKtaS8I5O/cK35aXf900Y4G/uNptitq9XO4ku1nWEBZMs8/WhRXDMiUV8lmSmqp64/1QoHzUUujHsJZkLcSVB0MRjZUTXcv5S97li5Vks5azk4sppeyEbp4lXWJoz9ntfkUbQSGqPB3/Zfq+pFi+W3F+bIf0GSFd6B8GarwFGQIzzDVFzCGpcjQ79VzpXOX9DIb4H8p+mW++XFLdfysuBAY1Bw9BRMjty229EaUnmh4C";
    internal static string _field_b = "73HWrM6iCrk=";
    private static DESCrypto _field_c = new DESCrypto();
    internal static DateTime _field_d = DateTime.Now;

    static Class_j()
    {
        DESCrypto.DESInfo info = new DESCrypto.DESInfo {
            IV = Convert.FromBase64String(_field_b),
            Key = Convert.FromBase64String(Class_aa._field_h)
        };
        _field_c.KeyInfo = info;
    }

    internal static DateTime a(long A_0)
    {
        return new DateTime(A_0);
    }

    internal static void a(out string A_0)
    {
        A_0 = null;
        foreach (FieldInfo info in typeof(Class_p).GetFields(BindingFlags.Public | BindingFlags.Static))
        {
            if (info.GetCustomAttributes(typeof(Class_k), false).Length > 0)
            {
                A_0 = (string) info.GetValue(null);
            }
        }
        A_0 = b(A_0 + "/qMa0hkFXw6ZSTY6U2MaLRbEFMxqJo/JCEZjZkCXWGR7s+l1yek6gLbx8nGaRl9xULqnOvM1j/zlW/1iy5Uy8IJ1rZJgzpEINOmL1TFnqICCU8/KqyhUhcJYNtc6itm00GmEsEnOuAYUyTE1JoUFh/woSlQnxIl9YVDtmDWvoErCkYOqloIktDr49H3Dmhad2PtjaUyV/UDr1pG7afvcP0hPg9Bfp0LaP5Hl4mdtvNxb2ueDZObTzFkxYqYNCevbhW8ObGC8MBSwnNx5VSclsPgf9IycbD4JfDGox52jt3D0I3pEnQ13Y0JWGCvBpXAWp9NXVFtOcRvSg3GteipY5h8LRVLXbQhhI+JNgDAnjEN4V9knksdQZqCaKtaS8I5O/cK35aXf900Y4G/uNptitq9XO4ku1nWEBZMs8/WhRXDMiUV8lmSmqp64/1QoHzUUujHsJZkLcSVB0MRjZUTXcv5S97li5Vks5azk4sppeyEbp4lXWJoz9ntfkUbQSGqPB3/Zfq+pFi+W3F+bIf0GSFd6B8GarwFGQIzzDVFzCGpcjQ79VzpXOX9DIb4H8p+mW++XFLdfysuBAY1Bw9BRMjty229EaUnmh4C");
        Class_o._field_a.FromXmlString(A_0);
    }

    internal static string[] a(string A_0)
    {
        return Encoding.UTF8.GetString(Convert.FromBase64String(A_0)).Split(new char[] { ';' });
    }

    internal static void a(Class_aa A_0, string A_1)
    {
        string[] strArray = A_1.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
        if (Class_o.a(strArray[0], strArray[1]))
        {
            string[] strArray2 = a(strArray[0]);
            a(A_0, strArray2);
            A_0._field_d = int.Parse(strArray2[2]);
            A_0._field_e = a(long.Parse(strArray2[3]));
            A_0._field_a = A_0._field_e > _field_d;
        }
    }

    internal static void a(Class_aa A_0, string[] A_1)
    {
        A_0._field_b = A_1[0];
        A_0._field_c = A_1[1];
    }

    internal static void b(out string A_0)
    {
        A_0 = null;
        foreach (FieldInfo info in typeof(Class_p).GetFields(BindingFlags.Public | BindingFlags.Static))
        {
            if (info.GetCustomAttributes(typeof(Class_aj), false).Length > 0)
            {
                A_0 = (string) info.GetValue(null);
            }
        }
        A_0 = b((string) A_0);
    }

    internal static string b(string A_0)
    {
        return _field_c.Decrypt(A_0);
    }
}

